Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for switcheroo #105

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

KyleGospo
Copy link
Contributor

@KyleGospo KyleGospo commented Jul 28, 2024

This is something bazzite has been shipping for a while, so putting it here for comment

Switcheroo is a GPU switching system that is used by both KDE and GNOME to select the correct GPU on multi-GPU systems when requested by an application. The Steam desktop file has the entry that triggers both DEs to run it using switcheroo, so this matches the same behavior in the gamescope session. Gamescope will use the same GPU it does now (or the one selected by the user with export-gpu) and Steam will run on the alt-GPU selected by Switcheroo.

This makes it easy to run gamescope on an iGPU and Steam + Games on a dGPU on a laptop.

@alkazar
Copy link
Member

alkazar commented Oct 16, 2024

Apologies for the delay in getting to this.

Do we want Steam running on the discrete gpu?
My understanding from my own testing is that Steam already takes care of launching games with the discrete GPU.
Having gamescope and Steam running on the integrated GPU gives games full access to the GPU and results in a much smoother experience when using the Steam overlays/menus, etc.

I haven't tested this in a while though, so things may have changed.

Oh, it may also be better for battery life to run Steam on the iGPU.

@LukeShortCloud
Copy link

I was curious about if it can help optimize power usage on laptops, too.

I used powertop to monitor the power usage when using switcherooctl on my laptop (Intel Xe iGPU + NVIDIA 3060M dGPU) to launch steam. I compared launch (launching Steam itself, not a game), idle, and download (game downloads) wattage. They were consistently the same whether I was using the iGPU or dGPU: launching = 12 watts, idle = 2 watts, downloads = 25 watts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants